package com.yj.web.WeChat.util.http;

import com.yj.web.util.WxErrorException;
import org.apache.http.HttpHost;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.impl.client.CloseableHttpClient;

import java.io.IOException;

/**
 * Created by yanlinyang on 2017/9/11.
 */
public interface RequestExecutor<T, E> {
    public T execute(CloseableHttpClient httpclient, HttpHost httpProxy, String uri, E data) throws WxErrorException, ClientProtocolException, IOException;
}
